home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NeXTSTEP 3.1 (Developer) [x86]
/
NeXT Step 3.1 Intel dev.cdr.dmg
/
NextDeveloper
/
Examples
/
AppKit
/
Draw
/
graphicsUndo.subproj
/
LineColorGraphicsChange.m
< prev
next >
Wrap
Text File
|
1992-02-09
|
700b
|
40 lines
#import "drawundo.h"
@interface LineColorGraphicsChange(PrivateMethods)
- (BOOL)subsumeIdenticalChange:change;
@end
@implementation LineColorGraphicsChange
- initGraphicView:aGraphicView color:(const NXColor *)aColor
{
[super initGraphicView:aGraphicView];
color = *aColor;
return self;
}
- (const char *)changeName
{
return NXLocalStringFromTable("Operations", "Line Color", NULL, "The operation of changing the color of a line segment.");
}
- changeDetailClass
{
return [LineColorChangeDetail class];
}
- (NXColor)lineColor
{
return color;
}
- (BOOL)subsumeIdenticalChange:change
{
color = [(LineColorGraphicsChange *)change lineColor];
return YES;
}
@end